package com.boot.ys.mybatisplus.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
public class UserExcelDto {

    @ExcelProperty(value = "客户编号",index = 0)
    @ApiModelProperty(value = "客户编号")
    @TableId(value = "user_id", type = IdType.AUTO)
    private Integer userId;

    @ExcelProperty(value = "姓名",index = 1)
    @ApiModelProperty(value = "姓名")
    private String userName;

    @ExcelProperty(value = "身份证号",index = 2)
    @ApiModelProperty(value = "身份证号")
    @TableField("IDCard")
    private String idcard;

    @ExcelProperty(value = "地址",index = 3)
    @ApiModelProperty(value = "地址")
    private String address;

    @ExcelProperty(value = "积分",index = 4)
    @ApiModelProperty(value = "积分")
    private BigDecimal integral;

    @ExcelProperty(value = "联系电话",index = 5)
    @ApiModelProperty(value = "联系电话")
    private String phone;

    @ExcelProperty(value = "创建时间",index = 6)
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    @ApiModelProperty(value = "创建时间")
    private String createTime;




}
